package com.spring1.bean;

public class ThirdBean {
    private SecondBean secondBean;
    private String username;

    public SecondBean getSecondBean() {
        return secondBean;
    }

    public void setSecondBean(SecondBean secondBean) {
        this.secondBean = secondBean;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void printUserInfo() {
        System.out.println(secondBean.getUserInfo() + ", " + username);
    }
}